From: Jasper St. Pierre Date: Sun, 3 Nov 2013 17:10:00 +0000 (-0500) Subject: app-system: Fix the keys in the id_to_app table X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~3087 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=dcb28aad2ab82566cd49b442766ed1aaf518ca84;p=gnome-shell.git app-system: Fix the keys in the id_to_app table The ID that's passed to us isn't usable as a key to store, as it's probably junk after the method returns. Use the app's storage for the ID instead. --- diff --git a/src/shell-app-system.c b/src/shell-app-system.c index d9e39e912..56636fffd 100644 --- a/src/shell-app-system.c +++ b/src/shell-app-system.c @@ -141,7 +141,7 @@ shell_app_system_lookup_app (ShellAppSystem *self, return NULL; app = _shell_app_new (info); - g_hash_table_insert (priv->id_to_app, (char *) id, app); + g_hash_table_insert (priv->id_to_app, shell_app_get_id (id), app); return app; }